package com.fjb.pojo.login;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * token 信息存储
 * </p>
 *
 * @author hemiao
 * @since 2020-02-19
 */
public class SysLoginToken implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String tokenId;

    /**
     * json 
     */
    private String tokenContent;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 失效时间
     */
    private LocalDateTime failureTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }
    public String getTokenContent() {
        return tokenContent;
    }

    public void setTokenContent(String tokenContent) {
        this.tokenContent = tokenContent;
    }
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    public LocalDateTime getFailureTime() {
        return failureTime;
    }

    public void setFailureTime(LocalDateTime failureTime) {
        this.failureTime = failureTime;
    }

    @Override
    public String toString() {
        return "SysLoginToken{" +
        "id=" + id +
        ", userId=" + userId +
        ", tokenId=" + tokenId +
        ", tokenContent=" + tokenContent +
        ", startTime=" + startTime +
        ", failureTime=" + failureTime +
        "}";
    }
}
